﻿<UserControl x:Class="admin.two.ads"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="400" Height="300" xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows" xmlns:System_Windows_Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
    <Grid x:Name="LayoutRoot" Background="#FFE9F3B2">

    	<vsm:VisualStateManager.VisualStateGroups>
    		<vsm:VisualStateGroup x:Name="StateGroup">
    			<vsm:VisualState x:Name="add">
    				<Storyboard>
    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
    						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1003"/>
    					</DoubleAnimationUsingKeyFrames>
    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
    						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-13"/>
    					</DoubleAnimationUsingKeyFrames>
    				</Storyboard>
    			</vsm:VisualState>
    			<vsm:VisualState x:Name="endadd">
    				<Storyboard>
    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
    						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-1009"/>
    					</DoubleAnimationUsingKeyFrames>
    				</Storyboard>
    			</vsm:VisualState>
    		</vsm:VisualStateGroup>
    	</vsm:VisualStateManager.VisualStateGroups>
    	<Grid.RowDefinitions>
    		<RowDefinition Height="0.143*"/>
    		<RowDefinition Height="0.857*"/>
    	</Grid.RowDefinitions>
    	<Button HorizontalAlignment="Left" Margin="8,8,0,7" x:Name="bt_add" VerticalAlignment="Stretch" Width="103" Content="添加" Style="{StaticResource ButtonLime}"/>
    	<Button HorizontalAlignment="Stretch" Margin="115,8,182,7" VerticalAlignment="Stretch" Content="删除" x:Name="bt_del" IsEnabled="False" Style="{StaticResource ButtonLime}"/>
    	<System_Windows_Controls:DataGrid Margin="0,0,0,0" x:Name="gridview" Grid.Row="1" Background="#FFE9F3B2"/>
    	<Border HorizontalAlignment="Left" Margin="-1009,8,0,-16" BorderBrush="#FFE8D44D" BorderThickness="4,4,4,4" CornerRadius="10,10,10,10" Grid.RowSpan="2" RenderTransformOrigin="0.5,0.5" x:Name="border">
    		<Border.RenderTransform>
    			<TransformGroup>
    				<ScaleTransform/>
    				<SkewTransform/>
    				<RotateTransform/>
    				<TranslateTransform/>
    			</TransformGroup>
    		</Border.RenderTransform>
    		<Grid Height="300" x:Name="grid" Width="400" RenderTransformOrigin="0.5,0.5" Background="#FFE9F3B2">
    			<Grid.RenderTransform>
    				<TransformGroup>
    					<ScaleTransform/>
    					<SkewTransform/>
    					<RotateTransform/>
    					<TranslateTransform/>
    				</TransformGroup>
    			</Grid.RenderTransform>
    			<Grid Height="28" Margin="38,70,8,0" VerticalAlignment="Top">
    				<Button HorizontalAlignment="Right" Margin="0,0,0,0" x:Name="bt_selectfile" VerticalAlignment="Stretch" Width="72" Content="选择文件" Style="{StaticResource ButtonLime}"/>
    				<TextBox HorizontalAlignment="Stretch" Margin="0,0,76,0" x:Name="tb_selectfilename" VerticalAlignment="Stretch" TextWrapping="Wrap" Style="{StaticResource TextBoxLime}"/>
    			</Grid>
    			<TextBlock Height="24" HorizontalAlignment="Left" Margin="38,114,0,0" VerticalAlignment="Top" Width="44" Text="标题" TextWrapping="Wrap"/>
    			<TextBox Height="24" Margin="86,114,8,0" x:Name="tb_title" VerticalAlignment="Top" Text="" TextWrapping="Wrap" Style="{StaticResource TextBoxLime}"/>
    			<TextBlock HorizontalAlignment="Left" Margin="38,0,0,117" VerticalAlignment="Bottom" Width="44" Text="文件名" TextWrapping="Wrap" Height="24"/>
    			<TextBox Height="24" Margin="86,0,8,117" x:Name="tb_filename" VerticalAlignment="Bottom" Text="" TextWrapping="Wrap" Style="{StaticResource TextBoxLime}"/>
    			<TextBlock HorizontalAlignment="Left" Margin="38,0,0,70" VerticalAlignment="Bottom" Width="44" Text="超连接" TextWrapping="Wrap" Height="24"/>
    			<TextBox Height="24" Margin="86,0,8,70" VerticalAlignment="Bottom" Text="" TextWrapping="Wrap" x:Name="tb_link" Style="{StaticResource TextBoxLime}"/>
    			<Button Height="39" HorizontalAlignment="Left" Margin="86,0,0,8" x:Name="bt_post" VerticalAlignment="Bottom" Width="94" Content="提交" Style="{StaticResource ButtonLime}"/>
    			<Button Height="39" HorizontalAlignment="Right" Margin="0,0,78,8" VerticalAlignment="Bottom" Content="取消" x:Name="bt_cancel" Width="94" Style="{StaticResource ButtonLime}"/>
    			<ListBox Height="50" HorizontalAlignment="Left" Margin="38,8,0,0" x:Name="lb_srot" VerticalAlignment="Top" Width="142" Style="{StaticResource ListBoxLime}" ScrollViewer.VerticalScrollBarVisibility="Visible">
    				<ListBoxItem Content="图片" Style="{StaticResource BoxItemLime}"/>
    				<ListBoxItem Content="视频" Style="{StaticResource BoxItemLime}"/>
    			</ListBox>
    		</Grid>
    	</Border>

    </Grid>
</UserControl>
